package kokonut.shop.color;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Color {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key id;

	private ExistingColors color;

	public Color(ExistingColors color)
	{
		this.color = color;
	}

	public ExistingColors getColor() {
		return color;
	}

	public String getColorName() {
		return color.name();
	}

	public void setColor(ExistingColors color) {
		this.color = color;
	}
}